// 领导驾驶舱 - 需要权限控制的菜单
const cockpitJurisdictionRoutes = [
  // 领导指挥督办
  {
    path: '/cockpit/supervise',
    name: 'cockpit-supervise',
    meta: {
      title: '领导指挥督办'
    },
    component: () => import('@/views/Cockpit/Supervise')
  },
  // 事件概况
  {
    path: '/cockpit/event-overview',
    name: 'cockpit-event-overview',
    meta: {
      title: '事件概览统计'
    },
    component: () => import('@/views/Cockpit/EventOverview')
  },
  {
    path: '/cockpit/urban',
    name: 'cockpit-urban',
    meta: {
      title: '城市运行监测'
    },
    component: () => import('@/views/Cockpit/Urban')
  },
  {
    path: '/cockpit/analyse',
    name: 'cockpit-analyse',
    meta: {
      title: '辖区党建分析'
    },
    component: () => import('@/views/Cockpit/Analyse')
  }
]

// 领导驾驶舱 - 不需要权限控制的菜单
const cockpitWhiteRoutes = [
  // 领导指挥督办-事件详情
  {
    path: '/cockpit/supervise/detail',
    name: 'cockpit-supervise-detail',
    meta: {
      title: '领导指挥督办详情'
    },
    component: () => import('@/views/Cockpit/Supervise/Detail/replied.vue')
  },
  // 未领导指挥督办-事件详情
  {
    path: '/cockpit/supervise/detail/unsupervise',
    name: 'cockpit-supervise-detail-unsupervise',
    meta: {
      title: '领导指挥督办详情'
    },
    component: () => import('@/views/Cockpit/Supervise/Detail/unsupervise.vue')
  },
  {
    path: '/cockpit/supervise/again',
    name: 'cockpit-supervise-again',
    meta: {
      title: '再次督办'
    },
    component: () => import('@/views/Cockpit/Supervise/Again')
  },
  // 事件列表详情
  {
    path: '/cockpit/eventOverview/detail',
    name: 'cockpit-eventOverview-detail',
    meta: {
      title: '事件列表详情'
    },
    component: () => import('@/views/Cockpit/EventOverview/Detail')
  },
  {
    path: '/cockpit/supervise/linkageCommand',
    name: 'cockpit-supervise-linkageCommand',
    meta: {
      title: '联动指挥'
    },
    component: () => import('@/views/Cockpit/Supervise/LinkageCommand')
  },
  {
    path: '/cockpit/supervise/linkageCommand/NavigationPage',
    name: 'cockpit-supervise-linkageCommand-navigationPage',
    meta: {
      title: '联动指挥导航'
    },
    component: () => import('@/views/Cockpit/Supervise/LinkageCommand/NavigationPage')
  },
  {
    path: '/cockpit/analyse/organizationlist',
    name: 'cockpit-analyse-organizationlist',
    meta: {
      title: '党组织列表'
    },
    component: () => import('@/views/Cockpit/Analyse/organizationlist')
  },
  {
    path: '/cockpit/analyse/organizationperson',
    name: 'cockpit-analyse-organizationperson',
    meta: {
      title: '党组织成员列表'
    },
    component: () => import('@/views/Cockpit/Analyse/organizationperson')
  },
  {
    path: '/cockpit/analyse/personlist',
    name: 'cockpit-analyse-personlist',
    meta: {
      title: '党员列表'
    },
    component: () => import('@/views/Cockpit/Analyse/personlist')
  },
  {
    path: '/cockpit/analyse/persondetail',
    name: 'cockpit-analyse-persondetail',
    meta: {
      title: '党员信息'
    },
    component: () => import('@/views/Cockpit/Analyse/persondetail')
  },
  {
    path: '/cockpit/analyse/organizationdetail',
    name: 'cockpit-analyse-organizationdetail',
    meta: {
      title: '党组织信息'
    },
    component: () => import('@/views/Cockpit/Analyse/organizationdetail')
  },
  {
    path: '/cockpit/gridMember',
    name: 'cockpit-gridMember',
    meta: {
      title: '网格员列表'
    },
    component: () => import('@/views/Cockpit/GridMember')
  },
  {
    path: '/cockpit/gridMember/detail',
    name: 'cockpit-gridMember-detail',
    meta: {
      title: '网格员详情'
    },
    component: () => import('@/views/Cockpit/GridMember/Detail')
  },
  {
    path: '/cockpit/gridMember/task',
    name: 'cockpit-gridMember-task',
    meta: {
      title: '领导任务下发'
    },
    component: () => import('@/views/Cockpit/GridMember/Task')
  },
  {
    path: '/cockpit/gridMember/record',
    name: 'cockpit-gridMember-record',
    meta: {
      title: '巡查走访记录'
    },
    component: () => import('@/views/Cockpit/GridMember/Record')
  },
  {
    path: '/cockpit/gridMember/person',
    name: 'cockpit-gridMember-person',
    meta: {
      title: '重点人员走访记录'
    },
    component: () => import('@/views/Cockpit/GridMember/Record/person')
  },
  {
    path: '/cockpit/gridMember/company',
    name: 'cockpit-gridMember-company',
    meta: {
      title: '重点人员走访记录'
    },
    component: () => import('@/views/Cockpit/GridMember/Record/company')
  }
]

// 领导驾驶舱 - 菜单
const cockpitRoutes = [...cockpitJurisdictionRoutes, ...cockpitWhiteRoutes]

export { cockpitJurisdictionRoutes, cockpitWhiteRoutes, cockpitRoutes }
